<?php
/**
 * Created by PhpStorm.
 * User: LiuJiaJun
 * Date: 2018/12/15
 * Time: 15:07
 */

namespace service\k3\order;

class CommonOrder extends AbstractOrder
{
    function setType()
    {
        $this->type = 'WORK';
    }

    function setTable()
    {
        $this->table = 'V_PPBOM_PRT';
    }

    function setFiled()
    {
        $this->field = 'ficmobillno as order_id,fcpnumber as remark,fauxqtymust as count,fnumber as sub_materiel_id,fsupplycode as supplier_id,fcpnumber,fqty';
    }

    function setParseSql()
    {
        $suffix = sprintf('select %s from %s', $this->field, $this->table);
        $this->parseSql = $suffix . " where ficmobillno = '%s'";
    }


}